package org.xhy.beanchameleon.core;

/**
 * @description:
 * @gitee: https://gitee.com/XhyQAQ
 * @copyright: B站: https://space.bilibili.com/152686439
 * @Author: Xhy
 * @CreateTime: 2024-03-27 20:39
 */
public class ChameleonBean implements Chameleon{
    private final Chameleon chameleon;
    private final String javaSrc;
    private final String className;

    public ChameleonBean(Chameleon chameleon, String javaSrc,String className) {
        this.chameleon = chameleon;
        this.javaSrc = javaSrc;
        this.className = className;
    }

    @Override
    public void process(Object o) {
        chameleon.process(o);
    }

    @Override
    public String toString() {
        return "ChameleonBean{" +
                "javaSrc='" + javaSrc + '\'' +
                ", className='" + className + '\'' +
                '}';
    }

    public String getJavaSrc() {
        return javaSrc;
    }

    public Chameleon getChameleon() {
        return chameleon;
    }

    public String getClassName() {
        return className;
    }
}
